<template>
  <div>
    我是slot_2
    <!-- 作用域插槽 -->
    <slot name="footer" :user="user"></slot>
    <h4>{{ user }}</h4>
  </div>
</template>
<script>
export default {
  data() {
    return {
      user: {
        name: "小溪流",
        age: 18,
      },
    };
  },
};
</script>

<style></style>
